/**
*	外贸预警
**/
app.controller('gWarningIndexCtrl', ['$scope', '$state', '$stateParams', '$http', 'utils',
  function($scope, $state, $stateParams, $http, utils) {
    // 页面数据
    $scope.warningData = {
      loading: true,
      listData: []
    }

    $scope.stateParams = $stateParams;

    // 获取预警快报列表信息
    utils.get('warningIndex', {
      type: $stateParams.type,
      keyWords: ''
    }).success(function (rs) {
      $scope.warningData.listData = rs.data;
      $scope.warningData.loading = false;
    });
  }
]);
